﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Resto.CostControl.Core.Cache;
using Resto.CostControl.Common.Consts;

namespace Resto.CostControl.Core.Query.SiteModule.ViewObject
{
    [Serializable]
    public class SiteVO
    {
        #region 基本属性

        public string ID { get; set; }

        /// <summary>
        /// 项目点编号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 项目点名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 站点地址
        /// </summary>
        public string SiteAddress { get; set; }

        /// <summary>
        /// 收货地址
        /// </summary>
        public string DeliveryAddress { get; set; }

        /// <summary>
        /// 项目经理名称
        /// </summary>
        public string PMName { get; set; }

        /// <summary>
        /// 厨师长名称
        /// </summary>
        public string ChefsName { get; set; }

        /// <summary>
        /// 所属区域代码
        /// </summary>
        public string AreaCode { get; set; }

        /// <summary>
        /// 所属区域的名称
        /// </summary>
        public string AreaName
        {
            get
            {
                return DictionaryVOArrayCache.GetDicNameByCode(DictionaryTypeConsts.String_Area_Code, AreaCode);
            }
        }

        #endregion
    }
}
